// import{ baseUr } from "config.js";

 export function channelsList(){
	 return uni.request({
		 url:`${baseUr}/Chanel`,
		 method:'GET'
	})
 }
 
export function addChannel(newChannel){
	return uni.request({
		url:`${baseUr}/Chanel`,
		method:'POST',
		data:{
			id:'',
			title:newChannel
		},
		success:res =>{console.log("success"+res)},
		fali:() =>{},
		complete:() => {}
	});
}

export function getUserList(){
	return uni.request({
		url:`${baseUr}/Users`,
		method:`GET`,
		header:{
			"AUthorization":`Beaer ${access_token}`
		},
		data:{},
		success:res  => {},
		fail:() =>{},
		compelte:()=>{}
	});
}